<?php
	$src=$New['fotos'];
	$mod_vars['altText']=htmlspecialchars($New['title']);
	
	
	?>
	<?php
	
		$mod_vars['bonusPics']="";
		//$img_arr=string_to_array($mod_vars['bonusPics']);
		if (!empty($src)) {
		
		//$mod_vars['bonusPics']="<a class=\"morepics\" id=\"showmorepics\">ѕоказать все фотографии</a>";
		//$mod_vars['bonusPics'].="<div class=\"blmorepics\" id=\"gallery\" style=\"display:block;\">";
		//foreach ($img_arr as $img) {
		
		
			//$src=$mod_vars['bonusPics'];
			$dest=str_replace(".", "_value.", $src);
			//$dest=FS_DOCROOT.$dest;
			$dest=str_replace("/content", "content", $dest);
			//$ssrc=FS_DOCROOT.$src;
			$src=str_replace("/content", "content", $src);
			
			$rgb="";
			$width="200";
			$height="150";
			//echo "src=".$src."<br>";
			//echo "dest=".$dest."<br>";
			//if (!file_exists($dest)) 
			$do=img_resize($src, $dest, $width, $height, $rgb);
			$dest=$dest;
			
			$mod_vars['bonusPics'].="<div class=\"item\">";
			$mod_vars['bonusPics'].="<a class='fancy' href='/".$src."' title='".$mod_vars['altText']."'>";
			$mod_vars['bonusPics'].="<img class=\"thumb\" src=\"/".$dest."\" alt=\"".htmlspecialchars($mod_vars['altText'])."\">";
			$mod_vars['bonusPics'].="</a>";
			$mod_vars['bonusPics'].="</div>";
			
		//}//foreach
		//$mod_vars['bonusPics'].="</div>";
		}//if (!empty($img_arr) and is_array($img_arr)) {
		else $mod_vars['bonusPics']="&nbsp;";
	
	
	?>


<h1 class="title" style="font-size:24px;"><?=$New['title'];?></h1>
<span style="color:#ababab">Опубликовано <?=mydate($New['newdate'], 1)?></span>

<?php
	if (!empty($mod_vars['bonusPics'])) {
	
	echo "<div style=\"float:right; margin:20px;\">";
		echo($mod_vars['bonusPics']);
	echo "</div>";
	}//if
	?>

<div style="padding:15px 0px 0px 0px;">
<em><?=$New['intro'];?></em>
</div>

<div style=" padding:15px 0px 0px 0px;">
<em><?=$New['newtext'];?></em>
</div>

<?php
/*
echo("<pre>");
print_r($_SESSION['user']);
echo("<pre>");
*/

?>
 


	
<?php require $module_path."/core/inc_printversion.php";?>
